package com.bonc.rms.dao.impl;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.bonc.rms.dao.PersonalDao;
import com.bonc.rms.utils.IESSearchUtil;
import com.bonc.rms.utils.impl.ESSearchUtilImpl;

@Repository
public class PersonalDaoImpl extends BaseDaoImpl implements PersonalDao {

	@Override
	public List<Map<String, Object>> personalResumePage(String id) {
		IESSearchUtil iesSearchUtil = new ESSearchUtilImpl();
		List<Map<String, Object>> resultList = new ArrayList<>();
		resultList.add(iesSearchUtil.getPageListById(id));
		return resultList;
	}

	@Override
	public List<Map<String, Object>> relationSchema(String queryType, String queryValue) {
		IESSearchUtil iesSearchUtil = new ESSearchUtilImpl();
		return iesSearchUtil.getPageListByKeyword(queryType, queryValue, 30, 0);
	}

}
